<script setup lang="ts">
//导入Goods类型，类型前面加type（通过自动导入即可完成）
import SonCom, {type Goods} from './components/SonCom.vue';

const getMsg = (value: string)=>{
  console.log(value);
}

const getList = (value: Goods[])=>{
  console.log(value);
}

</script>

<template>
<!--结构 -->
son com
<SonCom @getMsg="getMsg" @get-list="getList"></SonCom>
</template>
